package com.mbyte.easy.support.es.constants;

/**
 * @ClassName: EsConstants
 * @Description: Es常量
 * @Author: lxt
 * @Date: 2019-09-22 20:51
 * @Version 1.0
 **/
public class EsConstants {
    /**
     * 默认主分片数量
     */
    public final static int DEFAULT_NUMBER_OF_SHARDS = 5;
    /**
     * 默认备份分片数量
     */
    public final static int DEFAULT_NUMBER_OF_REPLICAS = 1;
    /**
     *返回数量配置
     */
    public final static int PAGE_QA_SIZE = 10;
    //非分页，默认的查询条数
    public final static int DEFALT_PAGE_SIZE = 20;
    public final static int DEFALT_PAGE_SIZE_MAX = 2000;
    //SCROLL查询 2小时
    public final static long DEFAULT_SCROLL_TIME = 2;
    //SCROLL查询 每页默认条数
    public final static int DEFAULT_SCROLL_PERPAGE = 20;

    /**
     * 同步类型
     */
    public final static int ES_SYNC_TYPE_ADD = 1000;
    public final static int ES_SYNC_TYPE_UPDATE = 1001;
    public final static int ES_SYNC_TYPE_DEL = 1002;
    public final static int ES_SYNC_TYPE_BATCH_DEL = 1003;

}
